removeNode

open fun removeNode(node: T)

Remove a node from the tree. This removes the node and any children. The node must be a member of the tree and not the root.

Parameters

node

a node to remove

Throws

if the node is null

if the node is not a member or if the node is the root of the tree